package com.usefullc.demo.domain;

import com.usefullc.system.entity.BaseEntity;
import com.usefullc.system.service.component.dict.DictField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;

/**
 * @author: Sampson
 * @date: 2020-12-19 17:47
 */
@ApiModel("演示")
@Entity(name = "demo")
@Data
public class Demo extends BaseEntity {


    @ApiModelProperty(notes = "名称")
    @Column(length = 50, nullable = false)
    private String name;

    @ApiModelProperty(notes = "描述")
    @Column(length = 50, nullable = false)
    private String content;


    @DictField(value = "userStatus")
    @ApiModelProperty(notes = "状态")
    @Column(length = 4, nullable = false)
    private Integer status;


}
